﻿using Core.DataAccess.Model.Project.Comment;
using Core.Framework.Model.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Core.DataAccess.Model.Project.Entrepot
{
    public partial class ProductTemplate
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public int TypeKey { get; set; }
        public string Phone { get; set; }
        public string ProjectToken { get; set; }

        /// <summary>
        /// 阅读量
        /// </summary>
        public int ReadNumber { get; set; }

        /// <summary>
        /// 销售量
        /// </summary>
        public int SalesNumber { get; set; }

        public int SupplierKey { get; set; }
        public string Content { get; set; }
        public bool? Confirm { get; set; }
        public DateTime? UpdateLastTime { get; set; }
        public DateTime? RegTime { get; set; }

        [NotMapped]
        public List<ProductSku> ProductSkus { get; set; }

        /// <summary>
        /// 运营属性
        /// </summary>
        [NotMapped]
        public List<ProductAttrbute> ProductAttrbutes { get; set; }

        /// <summary>
        /// 评论
        /// </summary>
        [NotMapped]
        public Comment Comment { get; set; }

    }

    public class Comment
    {
        public List<CommentList> Data { get; set; }
        public Pagination Pagination { get; set; }
    }
}
